package com.lpf.hotelsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 评论实体表(CommentEntity)实体类
 *
 * @author makejava
 * @since 2025-01-18 17:52:21
 */
public class CommentEntity implements Serializable {
    private static final long serialVersionUID = 614106608686577586L;
/**
     * 编号
     */
    private Integer commentId;
/**
     * 内容
     */
    private String content;
/**
     * 评论时间
     */
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty(name = "pubDate",notes = "评论时间",dataType = "date",required = true)
    private Date pubDate;
/**
     * 客房
     */
    private Integer roomInfoId;
/**
     * 用户
     */
    private Integer userId;


    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPubDate() {
        return pubDate;
    }

    public void setPubDate(Date pubDate) {
        this.pubDate = pubDate;
    }

    public Integer getRoomInfoId() {
        return roomInfoId;
    }

    public void setRoomInfoId(Integer roomInfoId) {
        this.roomInfoId = roomInfoId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

}

